package com.gxa.dto;

public class ResultDto {

    private Integer code;

    private String msg;

    private Object data;

    private Integer count;

    public ResultDto() {
    }

    public ResultDto(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResultDto(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResultDto(Integer code, String msg, Object data, Integer count) {
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.count = count;
    }

    public Integer getCount() {
        return count;
    }

    public ResultDto setCount(Integer count) {
        this.count = count;
        return this;
    }

    public Integer getCode() {
        return code;
    }

    public ResultDto setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public ResultDto setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Object getData() {
        return data;
    }

    public ResultDto setData(Object data) {
        this.data = data;
        return this;
    }
}
